﻿using Newtonsoft.Json;
//----------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
//----------------------------------------------------------------
using System.Linq;

namespace Microsoft.Samples.BasicHttpService
{
    public class Service : IService
    {
        AK_MedicalServiceEntities _AK_MedicalServiceEntities = new AK_MedicalServiceEntities();
        public string EchoWithGet(string s)
        {
            NurseBase ls = _AK_MedicalServiceEntities.NurseBase.First(p => p.NurseID == 1000000001);
            string output = JsonConvert.SerializeObject(ls, Newtonsoft.Json.Formatting.Indented);
            return output;
        }

        public string EchoWithPost(string s)
        {
            NurseBase ls = _AK_MedicalServiceEntities.NurseBase.First(p => p.NurseID == 1000000002);
            string output = JsonConvert.SerializeObject(ls, Newtonsoft.Json.Formatting.Indented);
            return output;

        }
    }
}
